#Boa:Frame:frameLogin

import wx
from framePrincipal import *
from frameP import *

def create(parent):
    return frameLogin(parent)

[wxID_FRAMELOGIN, wxID_FRAMELOGINBUTTON2, wxID_FRAMELOGINPANEL1, 
 wxID_FRAMELOGINSTATICTEXT4, wxID_FRAMELOGINSTATICTEXT5, 
 wxID_FRAMELOGINSTATICTEXT6, wxID_FRAMELOGINTEXTCTRL1, 
 wxID_FRAMELOGINTEXTCTRL2, 
] = [wx.NewId() for _init_ctrls in range(8)]

class frameLogin(wx.Frame):
    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.Frame.__init__(self, id=wxID_FRAMELOGIN, name='frameLogin',
              parent=prnt, pos=wx.Point(513, 308), size=wx.Size(165, 211),
              style=wx.DEFAULT_FRAME_STYLE, title='+Controle :: Login')
        self.SetClientSize(wx.Size(157, 184))
        self.SetBackgroundColour(wx.Colour(255, 255, 255))

        self.panel1 = wx.Panel(id=wxID_FRAMELOGINPANEL1, name='panel1',
              parent=self, pos=wx.Point(0, 0), size=wx.Size(157, 184),
              style=wx.TAB_TRAVERSAL)

        self.textCtrl1 = wx.TextCtrl(id=wxID_FRAMELOGINTEXTCTRL1,
              name='textCtrl1', parent=self.panel1, pos=wx.Point(32, 64),
              size=wx.Size(100, 21), style=0, value='')

        self.textCtrl2 = wx.TextCtrl(id=wxID_FRAMELOGINTEXTCTRL2,
              name='textCtrl2', parent=self.panel1, pos=wx.Point(32, 104),
              size=wx.Size(100, 21), style=wx.TE_PASSWORD, value='')

        self.staticText4 = wx.StaticText(id=wxID_FRAMELOGINSTATICTEXT4,
              label='Usu\xe1rio', name='staticText4', parent=self.panel1,
              pos=wx.Point(32, 48), size=wx.Size(37, 13), style=0)

        self.staticText5 = wx.StaticText(id=wxID_FRAMELOGINSTATICTEXT5,
              label='Senha', name='staticText5', parent=self.panel1,
              pos=wx.Point(40, 88), size=wx.Size(31, 13), style=0)

        self.button2 = wx.Button(id=wxID_FRAMELOGINBUTTON2, label='Entrar',
              name='button2', parent=self.panel1, pos=wx.Point(40, 136),
              size=wx.Size(75, 23), style=wx.WANTS_CHARS)
        self.button2.Bind(wx.EVT_BUTTON, self.OnButton2Button,
              id=wxID_FRAMELOGINBUTTON2)

        self.staticText6 = wx.StaticText(id=wxID_FRAMELOGINSTATICTEXT6,
              label='mControle', name='staticText6', parent=self.panel1,
              pos=wx.Point(32, 16), size=wx.Size(100, 23), style=0)
        self.staticText6.SetFont(wx.Font(14, wx.SWISS, wx.NORMAL, wx.BOLD,
              False, 'Tahoma'))

    def __init__(self, parent):
        self._init_ctrls(parent)


    def OnButton2Button(self, event):
        menu = MDIParentFrame1(None)
        menu.Show()
        self.Close()

    def OnButton1KeyUp(self, event):
        menu = MDIParentFrame1(None)
        menu.Show()
        self.Close()
